using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ModelTools._ModelOnly
{
    /// <summary>
    /// <para>If Feature Type Is</para>
    /// <para>Evaluates if a feature class is of the specified feature type.</para>
    /// <para>评估要素类是否为指定的要素类型。</para>
    /// </summary>    
    [DisplayName("If Feature Type Is")]
    public class FeatureTypeIfThenElse : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeatureTypeIfThenElse()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>Input feature layer to evaluate.</para>
        /// <para>要评估的输入要素图层。</para>
        /// </param>
        /// <param name="_feature_type">
        /// <para>Feature Type</para>
        /// <para><xdoc>
        ///   <para>The type of feature being evaluated.</para>
        ///   <bulletList>
        ///     <bullet_item>Annotation—Evaluate if the input features are annotation features.</bullet_item><para/>
        ///     <bullet_item>Dimension—Evaluate if the input features are dimension features</bullet_item><para/>
        ///     <bullet_item>Edge—Evaluate if the input features are edge features.</bullet_item><para/>
        ///     <bullet_item>Junction—Evaluate if the input features are junction features.</bullet_item><para/>
        ///     <bullet_item>Line— Evaluate if the input features are line features.</bullet_item><para/>
        ///     <bullet_item>Point—Evaluate if the input features are point features.</bullet_item><para/>
        ///     <bullet_item>Polygon—Evaluate if the input features are polygon features.</bullet_item><para/>
        ///     <bullet_item>Multipatch—Evaluate if the input features are multipatch features.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要评估的要素类型。</para>
        ///   <bulletList>
        ///     <bullet_item>注记 （Annotation） - 评估输入要素是否为注记要素。</bullet_item><para/>
        ///     <bullet_item>尺寸 - 评估输入要素是否为尺寸要素</bullet_item><para/>
        ///     <bullet_item>边 （Edge） - 评估输入要素是否为边要素。</bullet_item><para/>
        ///     <bullet_item>交汇点 - 评估输入要素是否为交汇点要素。</bullet_item><para/>
        ///     <bullet_item>线 - 评估输入要素是否为线要素。</bullet_item><para/>
        ///     <bullet_item>点 - 评估输入要素是否为点要素。</bullet_item><para/>
        ///     <bullet_item>面 - 评估输入要素是否为面要素。</bullet_item><para/>
        ///     <bullet_item>多面体 - 评估输入要素是否为多面体要素。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public FeatureTypeIfThenElse(object _in_features, List<object> _feature_type)
        {
            this._in_features = _in_features;
            this._feature_type = _feature_type;
        }
        public override string ToolboxName => "Model Tools";

        public override string ToolName => "If Feature Type Is";

        public override string CallName => "mb.FeatureTypeIfThenElse";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _feature_type, _true, _false];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>Input feature layer to evaluate.</para>
        /// <para>要评估的输入要素图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Feature Type</para>
        /// <para><xdoc>
        ///   <para>The type of feature being evaluated.</para>
        ///   <bulletList>
        ///     <bullet_item>Annotation—Evaluate if the input features are annotation features.</bullet_item><para/>
        ///     <bullet_item>Dimension—Evaluate if the input features are dimension features</bullet_item><para/>
        ///     <bullet_item>Edge—Evaluate if the input features are edge features.</bullet_item><para/>
        ///     <bullet_item>Junction—Evaluate if the input features are junction features.</bullet_item><para/>
        ///     <bullet_item>Line— Evaluate if the input features are line features.</bullet_item><para/>
        ///     <bullet_item>Point—Evaluate if the input features are point features.</bullet_item><para/>
        ///     <bullet_item>Polygon—Evaluate if the input features are polygon features.</bullet_item><para/>
        ///     <bullet_item>Multipatch—Evaluate if the input features are multipatch features.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>要评估的要素类型。</para>
        ///   <bulletList>
        ///     <bullet_item>注记 （Annotation） - 评估输入要素是否为注记要素。</bullet_item><para/>
        ///     <bullet_item>尺寸 - 评估输入要素是否为尺寸要素</bullet_item><para/>
        ///     <bullet_item>边 （Edge） - 评估输入要素是否为边要素。</bullet_item><para/>
        ///     <bullet_item>交汇点 - 评估输入要素是否为交汇点要素。</bullet_item><para/>
        ///     <bullet_item>线 - 评估输入要素是否为线要素。</bullet_item><para/>
        ///     <bullet_item>点 - 评估输入要素是否为点要素。</bullet_item><para/>
        ///     <bullet_item>面 - 评估输入要素是否为面要素。</bullet_item><para/>
        ///     <bullet_item>多面体 - 评估输入要素是否为多面体要素。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Feature Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _feature_type { get; set; }


        /// <summary>
        /// <para>True</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("True")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _true { get; set; }


        /// <summary>
        /// <para>False</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("False")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _false { get; set; }


        public FeatureTypeIfThenElse SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}